home *** CD-ROM | disk | FTP | other *** search
- -- card: 25575 from stack: in.3r
- -- bmap block id: 0
- -- flags: 0000
- -- background id: 2202
- -- name: LineNumber
-
-
- -- part contents for background part 10
- ----- text -----
- 13
-
- -- part contents for background part 19
- ----- text -----
- Functions
-
- -- part contents for background part 3
- ----- text -----
- LineNumber
-
- -- part contents for background part 2
- ----- text -----
- --
- --universal LineNumber function returns the line number for a location in any field
- --takes two parameters
- --name of a field..... "card field 2" - "field names" - name of me - the target - etc.
- --a set of coordinates..... "32,318" - the clickLoc - the mouseLoc - etc.
- --lineNumber("card Field 1",the mouseLoc)
- --hold down the option key and click on this field to try it
- --
-
- function lineNumber whatField,where
- put item 2 of where - item 2 of rect of whatField into linNum
- if style of whatField = "scrolling" then add scroll of whatField to linNum
- put linNum div textHeight of whatField + 1 into linNum
- return (linNum)
- end lineNumber
-
- --
- -- Original function provided 3/88 by Scott McGilliard
- --